<!DOCTYPE>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <title>工作</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="/common/css/public.css">
    <link rel="stylesheet" type="text/css" href="/common/css/style.css">
    <th:block th:include="include :: header('八大作业')" />
</head>
<script type="text/javascript">


</script>
<body>
   <div class="home_bod top_padd">
        <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">动火作业</span>
               <font class="fright">今日数量:<th:block th:text="${fireTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a id="fireTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myfireTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDeptfireTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">高处作业</span>
               <font class="fright">今日数量:<th:block th:text="${highTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a  id="highTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myhighTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDepthighTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">受限空间作业</span>
               <font class="fright">今日数量:<th:block th:text="${confineTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a   id="confineTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myconfineTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDeptconfineTaskList">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">动土作业</span>
               <font class="fright">今日数量:<th:block th:text="${earthTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a  id="earthTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myearthTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDeptearthTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">吊装作业</span>
               <font class="fright">今日数量:<th:block th:text="${hoistingTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a  id="hoistingTaskSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myhoistingTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDepthoistingTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">断路作业</span>
               <font class="fright">今日数量:<th:block th:text="${brokeTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a  id="brokeTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="mybrokeTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDeptbrokeTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">抽堵盲板作业</span>
               <font class="fright">今日数量:<th:block th:text="${plugTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a  id="plugTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myplugTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDeptplugTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
       <!--工作分类start-->
       <div class="task_list">
           <div class="task_list_top">
               <p class="fleft"></p>
               <span class="fleft">临时用电作业</span>
               <font class="fright">今日数量:<th:block th:text="${eleTaskList}"></th:block></font>
               <div class="clear_both"></div>
           </div>
           <ul>
               <li>
                   <a  id="eleTaskListSubmit">
                       <span class="task_one"><img src="/common/images/task_one.png" /></span>
                       <font>申请</font>
                   </a>
               </li>
               <li>
                   <a  id="myeleTaskList">
                       <span class="task_two"><img src="/common/images/task_two.png" /></span>
                       <font>我的</font>
                   </a>
               </li>
               <li>
                   <a  id="myDepteleTask">
                       <span class="task_three"><img src="/common/images/task_three.png" /></span>
                       <font>本单位</font>
                   </a>
               </li>
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
   </div>

</body>
</html>
<script src="/common/js/jquery.js"></script>
<script src="/common/js/common.js"></script>

<script>
    //监听返回
    $(function(){
        //1动火作业申请
        $("#fireTaskListSubmit").click(function () {
            location.href = "/dangerous/fill/"+$.userOperate.key("isLeader");
        });
        //我的动火作业
        $("#myfireTaskList").click(function () {
            location.href = "/dangerous/list?userId="+$.userOperate.userId();
        });
        //本单位动火作业
        $("#myDeptfireTask").click(function () {
            location.href = "/dangerous/firedeptList?userId="+$.userOperate.userId();
        });

        //2高处作业申请
        $("#highTaskListSubmit").click(function () {
            location.href = "/dangerous/highTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的高处作业
        $("#myhighTaskList").click(function () {
            location.href = "/dangerous/highTasklist?userId="+$.userOperate.userId();
        });
        //本单位高处作业
        $("#myDepthighTask").click(function () {
            location.href = "/dangerous/highTaskdeptList?userId="+$.userOperate.userId();
        });

        //3受限空间作业申请
        $("#confineTaskListSubmit").click(function () {
            location.href = "/dangerous/confineTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的受限空间作业
        $("#myconfineTaskList").click(function () {
            location.href = "/dangerous/confineTasklist?userId="+$.userOperate.userId();
        });
        //本单位受限空间作业
        $("#myDeptconfineTaskList").click(function () {
            location.href = "/dangerous/confineTaskdeptList?userId="+$.userOperate.userId();
        });

        //4动土作业申请
        $("#earthTaskListSubmit").click(function () {
            location.href = "/dangerous/earthTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的动土作业
        $("#myearthTaskList").click(function () {
            location.href = "/dangerous/earthTasklist?userId="+$.userOperate.userId();
        });
        //本单位动土作业
        $("#myDeptearthTask").click(function () {
            location.href = "/dangerous/earthTaskdeptList?userId="+$.userOperate.userId();
        });

        //5吊装作业申请
        $("#hoistingTaskSubmit").click(function () {
            location.href = "/dangerous/hoistingTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的吊装作业
        $("#myhoistingTaskList").click(function () {
            location.href = "/dangerous/hoistingTasklist?userId="+$.userOperate.userId();
        });
        //本单位吊装作业
        $("#myDepthoistingTask").click(function () {
            location.href = "/dangerous/hoistingTaskdeptList?userId="+$.userOperate.userId();
        });

        //6断路作业申请
        $("#brokeTaskListSubmit").click(function () {
            location.href = "/dangerous/brokeTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的断路作业
        $("#mybrokeTaskList").click(function () {
            location.href = "/dangerous/brokeTasklist?userId="+$.userOperate.userId();
        });
        //本单位断路作业
        $("#myDeptbrokeTask").click(function () {
            location.href = "/dangerous/brokeTaskdeptList?userId="+$.userOperate.userId();
        });

        //7抽堵盲板作业申请
        $("#plugTaskListSubmit").click(function () {
            location.href = "/dangerous/plugTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的抽堵盲板作业
        $("#myplugTaskList").click(function () {
            location.href = "/dangerous/plugTasklist?userId="+$.userOperate.userId();
        });
        //本单位抽堵盲板作业
        $("#myDeptplugTask").click(function () {
            location.href = "/dangerous/plugTaskdeptList?userId="+$.userOperate.userId();
        });

        //8临时用电作业申请
        $("#eleTaskListSubmit").click(function () {
            location.href = "/dangerous/eleTaskfill/"+$.userOperate.key("isLeader");
        });
        //我的临时用电作业
        $("#myeleTaskList").click(function () {
            location.href = "/dangerous/eleTasklist?userId="+$.userOperate.userId();
        });
        //本单位临时用电作业
        $("#myDepteleTask").click(function () {
            location.href = "/dangerous/eleTaskdeptList?userId="+$.userOperate.userId();
        });

        pushHistory();
        window.addEventListener("popstate", function(e) {
            console.log(e);
            location.href = "/hidden/index_?openId="+$.userOperate.openId();
        }, false);
        function pushHistory() {
            var state = {
                title: "title",
                url: "#"
            };
            window.history.pushState(state, "title", "#");
        }
    });


//    $(document).ready(function(e) {
//        var counter = 0;
//        if (window.history && window.history.pushState) {
//            $(window).on('popstate', function () {
//                window.history.pushState('forward', null, '#');
//                window.history.forward(1);
//                alert("不可回退");
//            });
//        }
//
//        window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
//        window.history.forward(1);
//    });


</script>